<?php

/**
 * contacto form.
 *
 * @package    istmo
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class contactoForm extends BasecontactoForm {

    public function configure() {
        
       $this->widgetSchema['nombre'] = new sfWidgetFormInputText(array(
                ), array('class' => "form-control input_envi"));
        $this->widgetSchema['email'] = new sfWidgetFormInputText(array(
                ), array('class' => "form-control input_envi"));
        $this->widgetSchema['telefono'] = new sfWidgetFormInputText(array(
                ), array('class' => "form-control input_envi"));
        $this->widgetSchema['empresa'] = new sfWidgetFormInputText(array(
                ), array('class' => "form-control input_envi"));
        $this->widgetSchema['mensaje'] = new sfWidgetFormTextarea(array(
                ), array('class' => "form-control input_envi")); 
 
        $this->validatorSchema['email'] = new sfValidatorEmail(array(), array('required'   => 'Falto su Correo','invalid'    => 'Por favor inserte un correo valido'));  
  	$this->validatorSchema['nombre'] = new sfValidatorString(array(), array('required'   => 'Falto su Nombre','invalid'    => 'Por favor inserte un nombre más largo'));
  	$this->validatorSchema['mensaje'] = new sfValidatorString(array(), array('required'   => 'Falto su Mensaje','invalid'    => 'Por favor inserte un mensaje más largo'));

    }

}
